<extend name="Index:base" />
<block name="body">
<div class="hd-menu-list">
	<ul>
		<li>
			<a href="{:U('index')}">管理员</a>
		</li>
		<li class="active">
			<a href="#">修改管理员</a>
		</li>
	</ul>
</div>
<form onsubmit="return hd_submit(this,'__ACTION__','{:U('index')}')" class="hd-form">
	<table class="hd-table hd-table-form">
		<thead>
        <tr>
            <td colspan="2">修改管理员</td>
        </tr>
    	</thead>
    		<tr>
    			<th class="hd-w120">用户名<span class="star">*</span></th>
    			<td >{$data.name}
                </td>
    		</tr>
    		<tr>
    			<th>密码</th>
    			<td><input class="hd-w300" type="password" name="pwd"></td>
    		</tr>
    		<tr>
    			<th>确认密码</th>
    			<td><input class="hd-w300" type="password" name="pwdc"></td>
    		</tr>
    		<tr>
    			<th>邮箱<span class="star">*</span></th>
    			<td><input type="text" value="{$data.mail}" required name="mail" class="hd-w300"></td>
    		</tr>
    		<tr>
    			<th>所属组<span class="star">*</span></th>
    			<td>
    				<foreach name="group" item="v">
                    <label><input type="checkbox" <if condition="in_array($v['id'],$gid)">checked="checked"</if> name="gid[]" value="{$v.id}"> {$v.title}</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </foreach>
    			</td>
    		</tr>
	</table>
    <input type="hidden" name="uid" value="{:I('get.uid')}">
    <input type="hidden" name="code" value="{$data.code}">
    <input type="submit" value="确定" class="hd-btn">
	<a href="{:U('index')}" class="hd-btn">取消</a>
</form>
</block>